package com.wcs.exam.common.excel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 试题信息导入-缓存
 *
 * @author wcs
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionUploadExcelParse implements Serializable {

    @Serial
    private static final long serialVersionUID = 6232069809126090189L;

    /**
     * 分类id
     */
    private Long categoryId;

    /**
     * 题目类型(1:单选题、2:多选题、3:判断题、4:填空题、5:简答题)
     */
    private Integer questionType;

    /**
     * 难度等级(1:简单、2:一般、3:困难)
     */
    private Integer difficultyLevel;

    /**
     * 题目内容
     */
    private String questionTitle;

    /**
     * 正确答案
     */
    private String correctAnswer;

    /**
     * 题目解析
     */
    private String questionAnalysis;

    /**
     * 选项
     */

    private List<Option> options;

    @Accessors(chain = true)
    @Data
    public static class Option implements Serializable {

        @Serial
        private static final long serialVersionUID = 5164089692300947466L;

        /**
         * 选项内容
         */
        private String optionContent;

        /**
         * 排序
         */
        private Integer sort;
    }
}
